// This file was created by Filewrap 1.1
// Little endian mode
// DO NOT EDIT

#include "../PVRTMemoryFileSystem.h"

// using 32 bit to guarantee alignment.
#ifndef A32BIT
 #define A32BIT static const unsigned int
#endif

// ******** Start: FragShader.fsh ********

// File data
static const char _FragShader_fsh[] = 
	"uniform sampler2D  sReflectTex;\r\n"
	"uniform sampler2D  sNormalMap;\r\n"
	"\r\n"
	"varying mediump vec3  EyeDirection;\r\n"
	"\r\n"
	"varying mediump vec2  TexCoord;\r\n"
	"\r\n"
	"void main()\r\n"
	"{\r\n"
	"\t// Get the normal direction per pixel from the normal map\r\n"
	"\t// The tNormal vector is defined in surface local coordinates (tangent space).\r\n"
	"\tmediump vec3 normal = texture2D(sNormalMap, TexCoord).rgb * 2.0 - 1.0;\r\n"
	"\t\r\n"
	"\t// reflect(): For the incident vector I and surface orientation N, returns the reflection direction:\r\n"
	"\t// I - 2 * dot(N, I) * N, N must already be normalized in order to achieve the desired result.\r\n"
	"\tmediump vec3 reflectDir = reflect(normal, EyeDirection);\r\n"
	"\tmediump vec2 reflectCoord = (reflectDir.xy) * 0.5 + 0.5;\r\n"
	"\t\r\n"
	"\t// Look-up in the 2D texture using the normal map disturbance\r\n"
	"\tgl_FragColor = texture2D(sReflectTex, reflectCoord);\r\n"
	"}";

// Register FragShader.fsh in memory file system at application startup time
static CPVRTMemoryFileSystem RegisterFile_FragShader_fsh("FragShader.fsh", _FragShader_fsh, 815);

// ******** End: FragShader.fsh ********

// This file was created by Filewrap 1.1
// Little endian mode
// DO NOT EDIT

#include "../PVRTMemoryFileSystem.h"

// using 32 bit to guarantee alignment.
#ifndef A32BIT
 #define A32BIT static const unsigned int
#endif

// ******** Start: FragShader.fsc ********

// File data
A32BIT _FragShader_fsc[] = {
0x10fab438,0x943df2cb,0x30050100,0x2501,0xd363e337,0x2000000,0x20000000,0x3f050000,0x1000000,0x4000000,0x0,0x18000000,0x203,0x0,0x2020000,0x0,0x0,0x24020000,0x55535020,0x20,0x218,0x1,0x0,0x0,0x224,0x0,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x770009,0xffff,0x30003,0x0,0x20000,0x3,0x0,0x0,0x0,0x0,0x3fffc,0x40000,0x1,0x0,0xffff0003,0xffffffff,0x20001,0x800000,0x4,0x30001,0x20002,0x0,0x2,0x10000,0x80002,0x0,0x90002,0x100000,0x30003,0x10000,0x50a0000,
0x1ffea140,0xffff4080,0xffffffff,0xffff,0x0,0x40000,0x30000,0x5,0x20001,0x80018001,0x80018001,0x0,0x0,0x4,0x70007,0x3060a,0x30003,0x20000,0x20002,0x40000,0x40004,0x0,0x20001,0x10000,0x0,0x20000,0x20002,0x30000,0x80010002,0x80018001,0x8001,0x0,0x40000,0x40004,0xd800a538,0x88119304,0x464000,0x40001f7c,0x80002044,0x10601000,0x2,0x20005,0x80008001,0x80018001,0x0,0x0,0x40004,0x40004,0x1010004,0x100,0xfa10,0x1fbe2044,0x81014001,0x10068030,0x69300040,0x1006d040,0xa0440041,0x10868020,0x20060,0x20000,0x80010002,0x80008001,0x8000,0x0,
0x40000,0x4,0x101,0x69d3fa10,0x1006f000,0x50060,0x0,0x80010002,0x80008001,0x8000,0x0,0x100000,0xf0001,0x60a000f,0x30003,0x30003,0x0,0x0,0x40004,0x40004,0x10000,0x30002,0x10001,0x0,0xa0000000,0xe0031404,0x6,0x46020000,0x55535020,0x20,0x23a,0x1,0x0,0x0,0x2a4,0x0,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x770009,0xffff,0x40003,0x0,0x20000,0x3,0x0,0x0,0x0,0x0,0x1fffc,0x40000,0x1,0x0,0xffff0003,0xffffffff,0x20001,0x800000,0x4,0x30001,0x20002,
0x0,0x2,0x10000,0x80002,0x0,0x90002,0x100000,0x30003,0x10000,0x50a0000,0x1ffea140,0xffff4080,0xffffffff,0xffff,0x0,0x40000,0x30000,0x2,0x20001,0x80018001,0x80018001,0x0,0x0,0x4,0x1000a000,0x52803,0x10000,0x80010002,0x80018001,0x8001,0x0,0x40000,0x70000,0x60a0007,0x10001,0x1,0x0,0x0,0x40004,0x4,0x10000,0x2,0x10001,0x0,0x20002,0x2,0x20003,0x80018001,0x80018001,0x0,0x0,0x40004,0x25380004,0x9300d820,0x40818811,0x1f7c0066,0x20464000,0x10008020,0x21060,0x50000,0x80010002,0x80018000,0x8001,0x0,
0x40000,0x40004,0x40004,0x1000101,0xfa100000,0x20040080,0x40011fbc,0x108002,0x401004,0xd0002930,0x411000,0x80202046,0x601080,0x2,0x20002,0x80018001,0x80008000,0x0,0x0,0x40004,0x1010000,0xfa100000,0xf00069d3,0x601000,0x5,0x20000,0x80018001,0x80008000,0x0,0x0,0x10000,0xf000f,0x1060a,0x10001,0x1,0x0,0x40000,0x40004,0x4,0x20001,0x10003,0x2,0x0,0x1400a000,0x6e003,0xc000000,0x0,0x0,0x0,0x40,0x0,0x0,0x0,0x803f,0x40,0x3f,0x0,0x0,0x4e730400,0x616d726f,0x70614d6c,0x18000000,0x103,0x2000001,
0x10000,0x54000001,0x6f437865,0x64726f,0x6030000,0x1000002,0x10000,0x3000204,0x79450000,0x72694465,0x69746365,0x6e6f,0x2060400,0x10000,0x100,0x70003,0x65527300,0x63656c66,0x78655474,0x18000000,0x103,0x2000001,0x10100,0x1,
};

// Register FragShader.fsc in memory file system at application startup time
static CPVRTMemoryFileSystem RegisterFile_FragShader_fsc("FragShader.fsc", _FragShader_fsc, 1375);

// ******** End: FragShader.fsc ********

